package com.liuhung.base.entity;

import java.io.Serializable;
import java.util.Date;


/**
 * @author www.jeecg.org
 */
public class BaseEntity implements Serializable {
	
	 /**
	 * 
	 */
	private static final long serialVersionUID = -5427533689772884514L;

	/**
	  * 状态枚举
	  * @author  www.csoft.com
	  *
	  */
	 public static enum STATE {
		 	ENABLE(0, "可用"), DISABLE(1,"禁用");
			public int key;
			public String value;
			private STATE(int key, String value) {
				this.key = key;
				this.value = value;
			}
			public static STATE get(int key) {
				STATE[] values = STATE.values();
				for (STATE object : values) {
					if (object.key == key) {
						return object;
					}
				}
				return null;
			}
		}
	 	public static enum RESOURCE_TYPE{
	 		IMAGE(0,"图片"),AUDIO(1,"音频"), VIDEO(2,"视频"),OTHER(3,"其他");
	 		public int key;
			public String value;
			private RESOURCE_TYPE(int key, String value) {
				this.key = key;
				this.value = value;
			}
			public static RESOURCE_TYPE get(int key) {
				RESOURCE_TYPE[] values = RESOURCE_TYPE.values();
				for (RESOURCE_TYPE object : values) {
					if (object.key == key) {
						return object;
					}
				}
				return null;
			}
	 	}
	 	
	 	/**
	 	 * 删除枚举
	 	 * @author  www.csoft.com
	 	 *
	 	 */
	 	public static enum DELETED {
			NO(0, "未删除"), YES(1,"已删除");
			public int key;
			public String value;
			private DELETED(int key, String value) {
				this.key = key;
				this.value = value;
			}
			public static DELETED get(int key) {
				DELETED[] values = DELETED.values();
				for (DELETED object : values) {
					if (object.key == key) {
						return object;
					}
				}
				return null;
			}
		}
	 	
	 	private Date datecreated;
		private Date lastupdated;
		private java.lang.Integer  status = 1;
		private java.lang.Integer deleted = 0;
		
		
		public Date getLastupdated() {
			return lastupdated;
		}
		public void setLastupdated(Date lastupdated) {
			this.lastupdated = lastupdated;
		}
		public java.lang.Integer getStatus() {
			return status;
		}
		public void setStatus(java.lang.Integer status) {
			this.status = status;
		}
		public java.lang.Integer getDeleted() {
			return deleted;
		}
		public void setDeleted(java.lang.Integer deleted) {
			this.deleted = deleted;
		}
		public Date getDatecreated() {
			return datecreated;
		}
		public void setDatecreated(Date datecreated) {
			this.datecreated = datecreated;
		}
	
}
